package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.heima.pojo.vo.NodeVo;
import com.heima.pojo.vo.TypeVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_vending_machine")
public class VmList {
    public final static Integer VMSTUATUS_0NT_RELEASED = 0;
    public final static Integer VMSTUATUS_OPERATION = 1;
    public final static Integer VMSTUATUS_ABORT = 3;        //0:未投放;1-运营;3-撤机

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;  //Vending machine表中的id
    private Integer vmType;
    private String innerCode;
    private Integer nodeId;
    private Integer vmStatus;
    private LocalDateTime lastSupplyTime;
    private String cityCode;
    private Integer areaId;
    private Integer createUserId;
    private String createUserName;
    private String clientId;
    private Double longitudes;
    private Double latitude;
    private Integer ownerId;
    private String ownerName;
    private Integer businessId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long regionId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

}
